export function getCurpage(pageName) {
  var pageKey = pageName + "Page";
  var page = localStorage.getItem(pageKey);
  page = page == null ? 1 : Number(page);
  return page;
}


/* ----- 关闭选择的标签 -----*/
export function closeSelectedTag(view) {
  return new Promise((resolve,reject)=>{
    this.$store.dispatch('tagsView/delView', view).then(({ visitedViews }) => {
      localStorage.removeItem(view.name + 'Page');  //删除页码
      // }
      resolve()
    })
  })
}
